package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.system.entity.AbdulBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 员工排班对象 employee_schedule
 *
 * @author ruoyi
 * @date 2025-05-12
 */
@ApiModel("员工排班对象")
public class EmployeeSchedule extends AbdulBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 排班记录的唯一标识符 */
    @ApiModelProperty("主键ID")
    private Long id;

    /** 班组名称 */
    @ApiModelProperty("班组名称")
    @Excel(name = "班组名称")
    private String teamName;

    /** 排序，用于在列表中显示班组的顺序 */
    @ApiModelProperty("排序")
    @Excel(name = "排序，用于在列表中显示班组的顺序")
    private Long sortOrder;

    /** 班次名称 */
    @ApiModelProperty("班次名称")
    @Excel(name = "班次名称")
    private String shiftName;

    /** 上班时间 */
    @ApiModelProperty("上班时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上班时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 下班时间 */
    @ApiModelProperty("下班时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下班时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 排班时间，具体的日期 */
    @ApiModelProperty("排班时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "排班时间，具体的日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date scheduleDate;

    /** 选择对象，可以是部门、岗位等描述 */
    @ApiModelProperty("选择对象")
    @Excel(name = "选择对象，可以是部门、岗位等描述")
    private String targetObject;

    /** 员工姓名 */
    @ApiModelProperty("员工姓名")
    @Excel(name = "员工姓名")
    private String employeeName;

    /** 手机号 */
    @ApiModelProperty("手机号")
    @Excel(name = "手机号")
    private String phone;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setTeamName(String teamName)
    {
        this.teamName = teamName;
    }

    public String getTeamName()
    {
        return teamName;
    }

    public void setSortOrder(Long sortOrder)
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder()
    {
        return sortOrder;
    }

    public void setShiftName(String shiftName)
    {
        this.shiftName = shiftName;
    }

    public String getShiftName()
    {
        return shiftName;
    }

    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }

    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }

    public void setScheduleDate(Date scheduleDate)
    {
        this.scheduleDate = scheduleDate;
    }

    public Date getScheduleDate()
    {
        return scheduleDate;
    }

    public void setTargetObject(String targetObject)
    {
        this.targetObject = targetObject;
    }

    public String getTargetObject()
    {
        return targetObject;
    }

    public void setEmployeeName(String employeeName)
    {
        this.employeeName = employeeName;
    }

    public String getEmployeeName()
    {
        return employeeName;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("teamName", getTeamName())
                .append("sortOrder", getSortOrder())
                .append("shiftName", getShiftName())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("scheduleDate", getScheduleDate())
                .append("targetObject", getTargetObject())
                .append("employeeName", getEmployeeName())
                .append("phone", getPhone())
                .toString();
    }
}
